home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PROGEDIT / 0773.ZIP / SETUT.DOC < prev   
Text File  |  1987-12-09  |  37KB  |  1,057 lines

  1.  
  2.          SE ECS Screen Editor
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.                                SE ECS Screen Editor
  19.  
  20.                            REFERENCE MANUAL and TUTORIAL
  21.  
  22.                            CSMAN 87-5          08-Dec-87
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.                                         SE
  43.  
  44.                                  ECS Screen Editor
  45.  
  46.                                      TUTORIAL
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.          (C) 1987 Southampton University, UK.             ISBN 0854322884
  54.  
  55.  
  56.          J. Adrian Pickering,
  57.          Department of Electronics and Computer Science,
  58.          The University,
  59.          Southampton, SO9 5NH
  60.          UK                                             8th December 1987
  61.  
  62.          Tel: +44 (0)703 559122
  63.  
  64.  
  65.                                         1
  66.  
  67.  
  68.          SE ECS Screen Editor
  69.          Tutorial
  70.  
  71.  
  72.  
  73.  
  74.          Introduction                                                 
  75.  
  76.  
  77.          One of the interpretations of the acronym 'SE' is 'Simple
  78.          Editor'.  Though there are quite a number of facilities in
  79.          SE, it is still a very easy editor with which to become
  80.          familiar.  SE is a 'Screen Editor' which presents text on a
  81.          screen rather like type on a sheet of paper.  Though there
  82.          are some similarities between SE and typing onto paper be
  83.          careful not to take the analogy too far - SE can do a lot
  84.          more than a typewriter and do it a lot easier!
  85.  
  86.          To learn the rudiments of SE using this Tutorial you will
  87.          need a computer which can run SE and allow you to create
  88.          files in its filestore.  The computer's output must appear on
  89.          a display screen; SE cannot work with printing terminals.
  90.          The Tutorial is written in a general way for all
  91.          implementations of SE so you may need some specific extra
  92.          help regarding how get your computer to work.  Ask a
  93.          colleague or consult the local beginners' information for the
  94.          computer system for help on how to get started.  In addition,
  95.          a medium size example text file will be useful, so also ask
  96.          for one or permission to access one.  (If you have access to
  97.          the SE distribution disk then a copy of this Tutorial would
  98.          be suitable.)
  99.  
  100.          For those who have met editors before it is worth mentioning
  101.          that SE is an editor for program-like texts.  It is not a
  102.          'word processing' type editor and makes no attempt to massage
  103.          the text to fit the available spaces automatically on the
  104.          screen.  For really good textual output on relatively cheap
  105.          computing machinery, then use SE followed by one of the
  106.          'post-processing' text formatting programs like 'roff' or
  107.          'LaTeX'.
  108.  
  109.  
  110.  
  111.          Getting started and finishing                               
  112.  
  113.  
  114.          Before starting SE you will be sitting at your computer
  115.          display and keyboard with the computer running.  The
  116.          computer's prompt should be present on the screen, inviting
  117.          you to type a command.  The objective is to create a 'file'
  118.          or document and record it using the computer's file storage
  119.          system (for later recall and processing).  For the purposes
  120.          of this introduction, this file will be called 'myfile'.
  121.  
  122.          Give the computer the following command (type the underlined
  123.          parts; the '>' symbol stands for the computer's prompt - it
  124.          may be different on your computer):
  125.  
  126.              >se myfile
  127.  
  128.          followed by 'return' and the SE program will start to run.
  129.          Briefly it will give a sign-on message something like:
  130.  
  131.                                         2
  132.  
  133.  
  134.          SE ECS Screen Editor
  135.          Tutorial
  136.  
  137.  
  138.              ECS Screen Editor, 17-Nov-87. (IBM PC)
  139.  
  140.          telling you that SE, version dated '17-Nov-87' (or whenever),
  141.          is starting and configuring itself for an 'IBM PC' (or
  142.          whatever).  It will then clear the screen and position the
  143.          cursor at the top left of the working area just below a
  144.          status line saying something like:
  145.  
  146.              [ New file ]                              INSERTING
  147.  
  148.          (If someone had already left a file around called 'myfile'
  149.          then the file would not be new and you would see what is in
  150.          it instead.)
  151.  
  152.          Having got SE started, the first thing to find out how to do
  153.          is how to leave SE safely.  If there is a 'home' key on the
  154.          keyboard try hitting this.  Alternatively, use the 'end of
  155.          file' code or the program abort code for your computer system
  156.          (often control+Z or control+C, where this means press the
  157.          'control' key AND the letter at the same time).  This should
  158.          give you the SE command line:
  159.  
  160.              Command:                           ======================
  161.  
  162.          with the cursor waiting at the prompt.  The key (combination)
  163.          you pressed is called the command key.  From here you can
  164.          give SE a wide variety of commands, including those which
  165.          enable you to leave SE and get back the the system command
  166.          level.  At this stage a useful command is the help command
  167.          which you can invoke by typing '?' (or 'H', 'h' or 'Help') at
  168.          the prompt:
  169.  
  170.              Command: help                      ======================
  171.  
  172.          followed by 'return'.  The display should give you details of
  173.          how to use the command line and also how to use the special
  174.          keypad or function keys available on your terminal.  If no
  175.          help information like this appears then SE is not installed
  176.          properly on the computer - ask for some human help.  (The
  177.          Tutorial appendix contains some help data for a few common
  178.          versions of SE.)
  179.  
  180.          To leave help and get back to editing just type 'return' on
  181.          its own on the command line.  Try it and then get the help
  182.          display back again.  The display shows how to get out without
  183.          creating or amending the file 'myfile' using the quit
  184.          command:
  185.  
  186.              Command: q                         ======================
  187.  
  188.          followed by 'return'.  SE should finish up by saying:
  189.  
  190.              Aborted, myfile not written.
  191.              >
  192.  
  193.          with your system command prompt back again.
  194.  
  195.  
  196.  
  197.                                         3
  198.  
  199.  
  200.          SE ECS Screen Editor
  201.          Tutorial
  202.  
  203.  
  204.          Being creative                                              
  205.  
  206.  
  207.          Start SE again using 'myfile'.  When the screen display stops
  208.          and the cursor shows, type a few words with the keyboard
  209.          followed by return.  Each 'return' starts a new line; create
  210.          a few more similar lines.  If you mistype a character then
  211.          you can erase it by hitting the delete key and then retyping.
  212.          Note that SE's 'delete' key may not be the same as the one
  213.          labelled 'delete' on the keyboard; check with the help
  214.          display using command h return.  'Delete' backspaces the
  215.          cursor by one position each time, deleting as it goes.
  216.  
  217.          Now move the cursor back the the beginning of the first line
  218.          of the text you typed in.  To do this find the cursor keys on
  219.          your keyboard and try pressing these a few times.  If these
  220.          do not have the desired effect of moving the cursor up, down,
  221.          left or right then have a look at the help display again to
  222.          see where SE's cursor movement keys are located.
  223.  
  224.          Note that all the time the text was being entered the the
  225.          message INSERTING was displayed on the top right hand corner
  226.          of the screen.  The meaning of this can be shown if you now
  227.          type another word or two from where you are at the beginning
  228.          of the first line.  INSERTING causes the the text that is
  229.          already there to move and make space for the new text so it
  230.          is not lost or typed over.
  231.  
  232.          Now choose a word somewhere in the middle of the text, move
  233.          to it and change it.  You will need to use the cursor keys to
  234.          position the cursor at the end of the word and the 'delete'
  235.          key to do the erase.  As you type the new word in room for it
  236.          will be made automatically because you are in INSERT mode.
  237.  
  238.          Insert mode also enables to to prise lines apart and insert
  239.          new ones using the 'return' key.  Position the cursor in the
  240.          middle of a word and press 'return'.  If you decide that you
  241.          did not want the line break there then the two line parts can
  242.          be joined again using 'delete'.
  243.  
  244.          Sometimes you want to be able to make corrections by
  245.          overtyping.  To do this INSERT mode must be switched off so
  246.          that the text stays in place as you type.  The help
  247.          information should show a key labelled insert on/off.  Find
  248.          this key and press it and the INSERTING message on the status
  249.          line at the top of the screen should disappear.  Press it
  250.          again and the INSERTING message should re-appear.  The INSERT
  251.          key 'toggles' the INSERT mode with the status line giving a
  252.          clear indication of which mode SE is currently in.
  253.  
  254.          Choose a word in the middle of the text and replace it using
  255.          overtype mode.  If you change it for a word with a different
  256.          length then you will also have to use INSERT mode to change
  257.          the length of the text to fit it in.
  258.  
  259.          See how the 'delete' and 'return' keys work slightly
  260.          differently in insert and overtype modes.  The rule is that
  261.          the text dimensions must remain the same in overtype mode
  262.  
  263.                                         4
  264.  
  265.  
  266.          SE ECS Screen Editor
  267.          Tutorial
  268.  
  269.  
  270.          since it must behave like overtyping on a piece of paper.
  271.          When overtyping 'delete' leaves spaces behind as it moves the
  272.          cursor backwards.  Return just moves to the beginning of the
  273.          next line without inserting a new one or breaking a line.
  274.          Note that the cursor keys do the same thing irrespective of
  275.          what mode you are in.
  276.  
  277.          It can be rather confusing trying to work out in which mode a
  278.          particular editing task is best performed.  It is a good idea
  279.          to stick to one mode as your default.  Almost all editing
  280.          tasks can be performed in INSERT mode; this also happens to
  281.          be SE's default too.
  282.  
  283.  
  284.  
  285.          The next move                                               
  286.  
  287.  
  288.          Position the cursor at the end of your text and then
  289.          repeatedly hit the cursor left key.  You should observe that
  290.          the cursor jumps to the end of the previous line from the
  291.          beginning of a line.  The command key followed by the left or
  292.          right keys get to the beginning or the end of the current
  293.          line respectively.  The same thing happens in overtype mode.
  294.  
  295.          More rapid movement around the text can be acheived using the
  296.          word right and word left keys.  Find out which ones these are
  297.          from the help display and try them out.  Note that a word is
  298.          simply a group of characters bounded by spaces so a group
  299.          like ' 123 ' is treated as a word.
  300.  
  301.  
  302.  
  303.          Getting it together                                         
  304.  
  305.  
  306.          You have already discovered what happens if you delete past
  307.          the beginning of a line in INSERT mode.  Effectively, the
  308.          'newline' marker between the present line and the previous
  309.          one gets deleted and the two lines join together.  Remember
  310.          that newline can be inserted anywhere along a line, thus
  311.          enabling a split of one line into two.
  312.  
  313.          There is another delete key called delete under cursor which
  314.          works the same way independent of the current mode.  It is
  315.          useful for deleting characters from the rest of the line but
  316.          without moving the cursor position.  This includes the
  317.          implicit 'newline' under of the cursor when there are no more
  318.          characters on the line, thus joining lines.  Try using it
  319.          beyond the end of a line and you will see it has a particular
  320.          use in joining the next line to the present one at the
  321.          specific position of the cursor.
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.                                         5
  330.  
  331.  
  332.          SE ECS Screen Editor
  333.          Tutorial
  334.  
  335.  
  336.          Filing it away                                              
  337.  
  338.  
  339.          To examine some more features of SE you will need the larger
  340.          file that was mentioned in the introduction.  So you can go
  341.          back to your experimental file and play some more, store the
  342.          text away by leaving SE in the normal way using the exit
  343.          command.  This saves the edited text in the file specified
  344.          when you started SE.
  345.  
  346.              Command: e                         ==============|-------
  347.  
  348.          followed by 'return' and your text is now written to the
  349.          file:
  350.  
  351.              Written file myfile
  352.              >
  353.  
  354.          Your system prompt should be present, awaiting the next
  355.          command.  You may wish to check the file and its content by
  356.          using commands that do 'list directory' and 'show a file on
  357.          the display'.
  358.  
  359.  
  360.  
  361.          A great mover                                               
  362.  
  363.  
  364.          Using the borrowed larger text file, invoke SE with its name
  365.          first and using a 'scratch' file name second:
  366.  
  367.              >se setut null
  368.  
  369.          This means edit 'setut' into file 'null'.  If you do not
  370.          supply a second filename SE assumes that you want the newly
  371.          edited file to have the same name as the previous version
  372.          (which is usual).  We do not want another version of 'setut'
  373.          to be created in this instance since we are only
  374.          experimenting.
  375.  
  376.          You may be wondering by now what the line at the top, right
  377.          of the display in command mode is supposed to mean.  This is
  378.          a bar line display showing roughly where you are in the file.
  379.          The line corresponds to the complete text; the thick part is
  380.          the proportion that you can see on the display and the
  381.          vertical mark indicates where the cursor is.
  382.  
  383.          Examine the file contents by paging through it using the page
  384.          down key.  Also try using the up and down cursor keys and the
  385.          word right and left keys and see what happens when the cursor
  386.          reaches the edge of the displayed text.  The page display
  387.          scrolls as if the cursor is nudging the display window
  388.          downwards.  Sometimes you want to leave the cursor where it
  389.          is on the display but move just the window instead.  This is
  390.          where the scroll up and scroll down keys are useful.  Move
  391.          the cursor away from the screen edge and try scrolling.
  392.  
  393.          After trying a few page downs check that the page up key
  394.  
  395.                                         6
  396.  
  397.  
  398.          SE ECS Screen Editor
  399.          Tutorial
  400.  
  401.  
  402.          works.  Find out what happens when you attempt to page beyond
  403.          the end of a file.  SE allows you to move past the end, line
  404.          by line, so that it can be extended, but not jump over it
  405.          into empty space.
  406.  
  407.          If your file is very large then it could become a little
  408.          tedious finding the end of the file by repeatedly paging.
  409.          The SE command facility can be useful here, so press the
  410.          command key.  At the command prompt you can type the line
  411.          number that you want the cursor to go to.  The last line in
  412.          the file is probably a number you do not know (and do not
  413.          really want to know).  Remembering that you cannot jump past
  414.          the end of the file, you could just type a very large number
  415.          instead.  Fortunately SE has a special symbol for such a
  416.          number.  The . (full stop) stands for a big positive number:
  417.  
  418.              Command: .                        ---=|-----------------
  419.  
  420.          followed by 'return' should place the cursor at the end of
  421.          the file.  Since line numbers are often too precise, you can
  422.          use approximate line range numbers to jump around the text.
  423.          For example:
  424.  
  425.              Command: .5                       --------------------==
  426.  
  427.          will get you half way through the file.  Numbers like .1 and
  428.          .9 get you near the beginning and end of the file
  429.          respectively.
  430.  
  431.          When using the command line you can correct mistakes by using
  432.          the 'delete' key or, if you want to clear the whole line,
  433.          just hit the command key again.  When you do this you also
  434.          get some different and useful status reports in the right
  435.          corner.
  436.  
  437.  
  438.  
  439.          Somewhere around here                                       
  440.  
  441.  
  442.          More often than not you know where you want to be in a file
  443.          by reference to a piece of the text, not by its line number.
  444.          Indeed, as you edit a file and insert and delete lines, the
  445.          line numbers are constantly changing anyway.  A more useful
  446.          way of positioning is by getting SE to find an instance of a
  447.          particular fragment of text by searching for it.
  448.  
  449.          Decide on a word near to the cursor position but ahead of it
  450.          and invoke the SE command prompt.  Type the word exactly as
  451.          you want to SE to find it (the search is letter case
  452.          sensitive) and finish with the word right key.  This is the
  453.          command to scan forwards through the text, from the next
  454.          cursor position onwards until the word is found.  SE will
  455.          reposition the cursor on the first letter of the matched word
  456.          and redraw the screen so the cursor line is as near the
  457.          centre of the screen as possible.  If this is not the
  458.          instance of the word that you wanted, invoke the command line
  459.          again and hit the word right key again.  SE will then find
  460.  
  461.                                         7
  462.  
  463.  
  464.          SE ECS Screen Editor
  465.          Tutorial
  466.  
  467.  
  468.          the next instance of the same search word you specified
  469.          before.  If another one cannot be found then SE will 'beep'
  470.          and put a question mark up by the word in the command line.
  471.          The cursor position will still be the same as it was before
  472.          the search began as shown by the bar line display.  You can
  473.          confirm this by clearing the command line (hit the command
  474.          key) and typing 'return' to get back to the text.
  475.  
  476.          As you might expect, you can search backwards from the
  477.          current cursor position as easily as searching forwards by
  478.          finishing the search string with the word left key instead of
  479.          word right.
  480.  
  481.  
  482.  
  483.          Moving up the block                                         
  484.  
  485.  
  486.          When editing real pieces of text of your own you will need to
  487.          know how to make bigger deletions in an easier way than by
  488.          using the single character delete key lots of times.  SE can
  489.          delete text in units of lines with the delete line key.  Find
  490.          this key and press it a few times to see what happens.  (You
  491.          do not need to worry about what happens to the file; remember
  492.          we are editing into a 'scratch' file which can be deleted if
  493.          necessary!)  Note that lines disappear, but not irrevocably
  494.          (yet) since SE tells you on the status line that it is
  495.          holding them.  You can find out what this means if you press
  496.          the restore key.  Provided that you did not reposition the
  497.          cursor between pressing the delete line key and the restore
  498.          key, the text should now be just like it was before.
  499.  
  500.          The SE status line should say that it is still holding the
  501.          lines that you have just restored.  Press the restore key
  502.          again and another copy of the previously deleted lines will
  503.          appear.  Note that they reappear in the reverse order that
  504.          they were deleted.  You could go on replicating as long as
  505.          there is space in the SE text buffer to hold all the lines.
  506.          You can reposition the cursor anywhere in the file before
  507.          pressing restore thus enabling a text block to be moved or
  508.          copied.  Being able to replicate one or more lines like this
  509.          is often quite useful for building up forms, program comment
  510.          headers and party invitations.
  511.  
  512.          When you want to change the contents of the holding buffer so
  513.          you can fill it with some new lines, the insert key is used.
  514.          To dump the held lines press it twice in succession.  This
  515.          leaves the mode as it was but empties the holding buffer,
  516.          indicated by the 'holding' message disappearing.  Always
  517.          remember to clear the holding buffer this way before
  518.          undertaking a new text block copy or move.
  519.  
  520.          If you have a lot of lines to delete it is easy to delete one
  521.          or two lines too many.  This can be easily put right by using
  522.          the undelete key.  This takes just one of the deleted lines
  523.          and puts it back at the cursor position.  Thus the action of
  524.          the restore key is slightly different in that it COPIES out
  525.          of the held list but undelete one line MOVES lines out of the
  526.  
  527.                                         8
  528.  
  529.  
  530.          SE ECS Screen Editor
  531.          Tutorial
  532.  
  533.  
  534.          list.
  535.  
  536.          The limitation of being able to only delete and restore whole
  537.          lines is not as restricting as it sounds.  It is very easy to
  538.          isolate a section from a line by splitting it using
  539.          'return's.  After deleting the section the remaining bits can
  540.          be joined back together again if necessary.  Try taking out a
  541.          section of a line using this technique and, perhaps, moving
  542.          the deleted section into another line somewhere else.
  543.          Remember that you must be in insert mode to be able to split
  544.          lines.
  545.  
  546.  
  547.  
  548.          Lots more times                                             
  549.  
  550.  
  551.          You have used some keys both when screen editing and within
  552.          command mode - 'delete', 'return' and the word left and word
  553.          right cursor keys.  Most of the other keys do the same in
  554.          command mode as they do when screen editing but repeated a
  555.          specific number of times.  From the SE command line type:
  556.  
  557.              Command: .                        --------------------|=
  558.  
  559.          followed by the cursor up key.  This means go a 'big' number
  560.          of lines up from the the current line, which should mean go
  561.          to the beginning of the file.  From here do the command again
  562.          but type the cursor down key instead and you should now be at
  563.          the end of the file.  Try it out with the page up and down
  564.          keys and with smaller numbers.  For example to go up 45 lines
  565.          type command 45 cursor up; to go down 2 pages (where a page
  566.          is a screenful) type command 2 page down.
  567.  
  568.          The repeat factor also applies to the delete line key.  But
  569.          before you try this it is perhaps worth pointing out that if
  570.          you are at the start of the text and do . delete line SE will
  571.          do exactly what you ask and delete ALL the lines in the file!
  572.          Just delete a few lines.  Note that they can be recovered
  573.          again using the restore key.
  574.  
  575.          Repeat factors can be signed numbers.  Indeed, if you want to
  576.          treat 'return' as a cursor movement key instead of the key
  577.          you finish SE commands with, you must make the number signed.
  578.          Thus another way of moving to the beginning of the file then
  579.          you can go a 'big negative' number of 'return's back by
  580.          typing:
  581.  
  582.              Command: -                        ------=|--------------
  583.  
  584.          where - stands for a 'big' negative number and, as 'return'
  585.          always goes to the first character in a line, you should now
  586.          be at the first character in the file.
  587.  
  588.          To move to the ends of lines or the top or bottom lines on
  589.          the screen you can use a 'void' factor, that is not giving
  590.          one at all.  To move to the current line start use cursor
  591.          left from command mode prompt; to move to the line end use
  592.  
  593.                                         9
  594.  
  595.  
  596.          SE ECS Screen Editor
  597.          Tutorial
  598.  
  599.  
  600.          cursor right similarly.  The cursor up and down keys with
  601.          void factors move the cursor to the page top and page bottom
  602.          respectively.
  603.  
  604.          In summary, the 'line' affecting keys can take signed repeat
  605.          factors on the SE command line.  The 'character' (and 'word')
  606.          right and left keys take a word matching argument and cause
  607.          character scanning through the text until a match is found.
  608.          Special meanings are attached to void arguments.
  609.  
  610.  
  611.  
  612.          In for major surgery                                        
  613.  
  614.  
  615.          There are two other screen editing keys that have different
  616.          uses in command mode.  The undelete key normally recovers the
  617.          last search word remembered by SE from the last search (see
  618.          the Reference Manual for a complete description).  Sometimes
  619.          it is useful to check what the last string was before using
  620.          it in case there is some doubt.  If you want to search for
  621.          something almost but not quite the same, recall the string
  622.          and edit it before for the next search.
  623.  
  624.          The restore key takes a file name as an argument.  This
  625.          restores text from another file rather than the holding
  626.          buffer.  This can be useful for adding standard 'pro forma'
  627.          bits of text into a new file, such as a letter or program
  628.          heading.  You should have a file 'myfile' available for
  629.          inclusion in the current file you are editing.  Move to
  630.          somewhere in the middle of the current text and then give the
  631.          command:
  632.  
  633.              Command: myfile                   --------=|------------
  634.  
  635.          followed by the restore key.  With any luck, after a very
  636.          short pause, the screen should redraw with the cursor sitting
  637.          on the top line of the newly inserted piece of text.
  638.  
  639.          Without moving the cursor from the current position, now give
  640.          the command:
  641.  
  642.              Command: -                        --------|-------------
  643.  
  644.          followed by the delete line key.  This means delete all the
  645.          lines above the current position (remember what was said
  646.          about signed arguments above).  Now find the end of the
  647.          'myfile' bit of the file and move to the next line beyond it.
  648.          Execute the command:
  649.  
  650.              Command: .                        |==-------------------
  651.  
  652.          followed by the delete line key again.  You have now
  653.          performed major surgery on the text you had, cutting out
  654.          everything except a small section from the middle.  This type
  655.          of action can be useful for isolating a file fragment for
  656.          inclusion (using restore) in a subsequent edit.  Obviously,
  657.          what you have done here is not so useful - just creating
  658.  
  659.                                         10
  660.  
  661.  
  662.          SE ECS Screen Editor
  663.          Tutorial
  664.  
  665.  
  666.          another instance of 'myfile'!
  667.  
  668.          The contents of the holding buffer are not affected when
  669.          either the undelete and restore keys are used in command
  670.          mode.
  671.  
  672.  
  673.  
  674.          Problems, problems                                          
  675.  
  676.  
  677.          Though every effort is made to ensure that the text display
  678.          is a true rendering of what is in the computer memory, this
  679.          might not always appear to be so.  For instance, a message
  680.          from another user or from the system might suddenly appear in
  681.          the middle of the text as you are editing it.  If you do not
  682.          believe the display is correct then you can ask SE to redraw
  683.          it all using the verify command:
  684.  
  685.              Command: v                        =|============--------
  686.  
  687.          followed by 'return'.  (Some SEs have a verify key that does
  688.          the same thing.)
  689.  
  690.          Another useful command in this family is the 'continue'
  691.          command.  In a computer system that does not have a good
  692.          reliability record then it is wise to periodically ask SE to
  693.          write the current state of the text to the file store before
  694.          continuing with a long edit.  How often you use this depends
  695.          on how much you value your time!
  696.  
  697.          If SE runs out of space in the computer to store your text
  698.          then it will automatically switch into its browsing mode and
  699.          issue a warning message.  Browsing is an SE mode that forbids
  700.          any changes but allows moving around the text.  (SE can be
  701.          used as a 'browser' by using the -b option; see below for
  702.          more about options.)
  703.  
  704.  
  705.  
  706.          Tidying up                                                  
  707.  
  708.  
  709.          The practical part of the tutorial is now complete and you
  710.          can now leave SE in the usual way using command e return.
  711.          Check to see if the file 'null' was created and delete it if
  712.          necessary (on some systems it may not be because 'null' is a
  713.          special file that just dumps any data put into it).
  714.  
  715.  
  716.  
  717.          Fancy facilities                                            
  718.  
  719.  
  720.          Because SE is supposed to be 'simple' it does not have many
  721.          fancy facilities.  However, there are a few areas where SE
  722.          can justify some extras.
  723.  
  724.  
  725.                                         11
  726.  
  727.  
  728.          SE ECS Screen Editor
  729.          Tutorial
  730.  
  731.  
  732.          Often you know whereabouts you wish to start editing an
  733.          existing text.  This might be the end of the text if you are
  734.          extending a document or at a specific line number if a
  735.          program compiler has told you on which line an error lies.
  736.          When starting SE you can give it an optional extra line
  737.          number argument.  The numbers you give have the same format
  738.          as with the SE line number setting command.  Here are some
  739.          examples:
  740.  
  741.              >se myfile -l .                 (the end of the file)
  742.  
  743.              >se setut null -l .5            (half way through)
  744.  
  745.              >se myprog.c -l 231
  746.  
  747.  
  748.          When SE is being used for document production then it is
  749.          convenient to be able to 'copy type' the text without being
  750.          bothered about having to hit the 'return' key at the end of
  751.          every line.  SE has a wrap mode which applies to the file
  752.          editing session.  When used, the first space typed after the
  753.          right margin in INSERT mode will cause a new line to be
  754.          created automatically.  (The right margin is 13 characters in
  755.          from the right edge of the display.)  The space that causes
  756.          the wrap is not inserted in the text.  Wrapping only works in
  757.          INSERT mode since you might want to perform corrections or
  758.          lay out text in a specific way.  If so, then switch into
  759.          overtype mode and wrapping will not occur.  The wrap facility
  760.          can be invoked by starting SE with a -w argument:
  761.  
  762.              >se myfile -w
  763.  
  764.  
  765.          There is another formatting aid useful for programmers.
  766.          Correctly indenting program texts is a necessary chore and
  767.          SE's auto-indent feature can assist with this.  It is invoked
  768.          with the 'auto' option:
  769.  
  770.              >se myprog.c -a
  771.  
  772.          When a new line is created SE positions the cursor underneath
  773.          the first character of the previous line, if there was one.
  774.          If not, then the cursor column position will be the same as
  775.          it was before.  Again, this only has an affect in INSERT mode
  776.          for the same reasons as with wrapping.  Since auto-indenting
  777.          causes extra spaces to be inserted automatically by SE you
  778.          would expect it to automatically take them out again if you
  779.          decide to join two lines.  SE does what you expect.
  780.  
  781.          If you want to use more than one option at once then all you
  782.          have to do is combine them on the command line:
  783.  
  784.              >se myprog.c -a -l 231
  785.  
  786.          (Some versions of SE might have some variations about how to
  787.          specify command line options in order to be compatible with
  788.          the host computer system standard.)
  789.  
  790.  
  791.                                         12
  792.  
  793.  
  794.          SE ECS Screen Editor
  795.          Tutorial
  796.  
  797.  
  798.          Some experienced users of editors might be wondering where
  799.          the 'replace' or 'substitute string' facility is.  SE does
  800.          not have one!  However, what it does have is a more general
  801.          purpose ability to remember screen editing key sequences
  802.          (sometimes called 'macros' in other editors).  This can be
  803.          used to memorise the operation required to replace a word.
  804.          Thus to find and replace a string in SE (a) find the next
  805.          occurrence by searching and the (b) repeat the edit by
  806.          replaying the memorised sequence.  The memorise facility is
  807.          also useful for pulling in or pushing out blocks of program
  808.          code.
  809.  
  810.  
  811.          Quite often, while editing, you need to make quick reference
  812.          to some other source of information that is also on the
  813.          computer somewhere.  It is tedious to have to finish the
  814.          edit, look up the information, and then restart the edit
  815.          again.  Most versions of SE have a shell command (command s
  816.          return) which suspends the edit temporarily to enable you to
  817.          get the information you want.  To go back to the edit, exit
  818.          the command shell (typically by issuing the command 'exit')
  819.          and SE will reawaken at the point it was left off.
  820.  
  821.  
  822.  
  823.          Getting on                                                  
  824.  
  825.  
  826.          You now know about all the important features of SE.  The
  827.          Appendix contains some quick reference information covering
  828.          all the facilities of SE.  You may care to glance over this
  829.          to get an idea of what other things SE can do.
  830.  
  831.          If you need further information then look in the Reference
  832.          Manual.  It has a comprehensive index which should enable you
  833.          to find the parts relevant to your query.  The Reference
  834.          Manual also has an advanced examples section which should be
  835.          of interest once you are more familiar with SE.  Of course,
  836.          you can always consult your local expert.  However, it
  837.          shouldn't take long to become one yourself!
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.                                         13
  858.  
  859.  
  860.          SE ECS Screen Editor
  861.          Appendix 1 - Typical help pages
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.          .
  922.  
  923.                                         14
  924.  
  925.  
  926.          SE ECS Screen Editor
  927.          Appendix 2 - Quick Reference
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.          .
  988.  
  989.                                         15
  990.  
  991.  
  992.          SE ECS Screen Editor
  993.          Appendix 2 - Quick Reference
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.          .
  1054.  
  1055.                                         16
  1056.  
  1057.